<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{:isset($info['id'])?'编辑':'新增'}视频</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <div class="with-padding">
            <div class="form-item">
                <label class="item-label">标题<span class="check-tips">（用于后台显示的配置标题）</span></label>
                <div class="controls">
                    <input type="text" class="text input-large form-input-width form-control" name="title" value="{$info.title|default=''}">
                </div>
            </div>
           <div class="form-item">
                <label>视频地址 <span class="check-tips">(请将优酷视频的flash地址粘贴在此框内)</span></label>
               <div class="controls">
                   <input type="text" class="text input-large form-input-width form-control" name="swf" value="{$info.swf|default=''}">
               </div>
           </div>
            <div class="form-item">
                <label>视频说明 <span class="check-tips">(请将优酷视频的flash地址粘贴在此框内)</span></label>
                <div class="controls">
                    <textarea name="remark" class="form-control" rows="10" style="width: 500px" >{$info.remark}</textarea>
                </div>
            </div>
        <div class="form-item with-padding">
            <input type="hidden" name="id" value="{$info.id|default=''}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        Think.setValue("pid", {$info.pid|default=0});

        Think.setValue("hide", {$info.hide|default=0});
        Think.setValue("is_dev", {$info.is_dev|default=0});
        //导航高亮
        highlight_subnav('{:U('index')}');
        Think.setValue("module", '{$info.module|default=''}');
    </script>
</block>